package com.wmeimob.fastboot.jiubei.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import javax.persistence.*;
import java.io.Serializable;
import java.util.*;
import java.math.*;


/**
* ShopGoodsStatistics.java
* http://www.wmeimob.com
* Copyright © 2018 wmeimob All Rights Reserved,version 1.0
* @author：wjt
* Mon Sep 07 00:55:01 CST 2020 Created
*/ 

@Table(name = "`shop_goods_statistics`")
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ShopGoodsStatistics implements Serializable {
	
   private static final long serialVersionUID = 1L;
	
    /**
     * Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 商品类型(SHOP:商城商品 INTEGRAL:积分商城)
     */
    @Column(name = "type")
    private String type;
    /**
     * 商品名称
     */
    @Column(name = "name")
    private String name;
    /**
     * 商品分类Id
     */
    @Column(name = "shop_goods_id")
    private Integer shopGoodsId;
    /**
     * 规格
     */
    @Column(name = "specification")
    private String specification;
    /**
     * 单位
     */
    @Column(name = "unit")
    private String unit;
    /**
     * 销售额
     */
    @Column(name = "sales_volume")
    private BigDecimal salesVolume;
    /**
     * 销售数量
     */
    @Column(name = "sale_num")
    private Integer saleNum;
    /**
     * 是否删除 0未删除 1删除
     */
    @Column(name = "is_del")
    private Boolean del;
    /**
     * GmtCreate
     */
    @Column(name = "gmt_create")
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;
    /**
     * GmtModified
     */
    @Column(name = "gmt_modified")
    @JsonFormat(locale="zh", pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

}